package cv.cvut.felk.via.sm.services;

import java.util.ArrayList;
import java.util.List;

import cz.cvut.felk.via.sm.model.User;

public class UserDummyService {

	public UserDummyService(){
		
	}
	
	public String login(String hash){
		String username = hash.substring(0, hash.indexOf("-"));
		String password = hash.substring(hash.indexOf("-")+1, hash.length());
		if(username.equals("student")&&password.equals("student")||username.equals("teacher")&&password.equals("teacher")){
			return "OK";
		}else{
			return"KO";
		}
	}
	
	
	
}
